package net.orange.architecture.db;

/**
 * The pair of the condition and pre-relation(and/or).
 */
public class ConditionPair {

	/**
	 * The condition
	 */
	private Condition condition;

	/**
	 * The relation
	 */
	private Relation relation;

	/**
	 * Constructor with the condition and pre-relation (and/or).
	 * 
	 * @param c
	 *            The condition
	 * @param r
	 *            The prefix relation
	 */
	public ConditionPair(Condition c, Relation r) {
		condition = c;
		relation = r;
	}

	/**
	 * @return Returns the condition.
	 */
	public Condition getCondition() {
		return condition;
	}

	/**
	 * @return Returns the relation.
	 */
	public Relation getRelation() {
		return relation;
	}

	/**
	 * @param condition
	 *            The condition to set.
	 */
	public void setCondition(Condition condition) {
		this.condition = condition;
	}

	/**
	 * @param relation
	 *            The relation to set.
	 */
	public void setRelation(Relation relation) {
		this.relation = relation;
	}
}